<template>
		<p class='tips'>{{text}}<el-button class='btn' type='text' @click='onCheck'>查看</el-button></p>
</template>

<script>
	module.exports = {
		name: 'tips',
		data(){
			return {}
		},
		props: ['text'],
		methods: {
			onCheck() {
				this.$emit('check');
			}
		}
	}
</script>

<style scoped lang='less'>
	.tips {
		width: 200px;
		margin-right: 0;
		line-height: 34px;
		.btn {
			float: right;
			vertical-align: middle;
		}
	}
</style>